<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BActionGroup</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BActionGroup">
			<h1>BActionGroup</h1>
			<p>继承自<a href="BObject.html">BObject</a></p>
			<p id="resume">BActionGroup包含多个动作（BAction）并对它们进行选中状态（checked）互斥。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"/><td><a href="#BActionGroup(const BString&)">BActionGroup</a>(const BString& name = BString());</td></tr>
				<tr><td align="right"/><td><a href="#~BActionGroup()">~BActionGroup</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setSelectMode(SelectMode)">setSelectMode</a>(SelectMode selectMode);</td></tr>
				<tr><td align="right">SelectMode </td><td><a href="#selectMode() const">selectMode</a>() const;</td></tr>
				<tr><td align="right">bool </td><td><a href="#addAction(BAction*)">addAction</a>(BAction* action);</td></tr>
				<tr><td align="right">BAction* </td><td><a href="#addAction(const BString&)">addAction</a>(const BString& text);</td></tr>
				<tr><td align="right">BAction* </td><td><a href="#addAction(BIcon*,const BString&)">addAction</a>(BIcon* icon, const BString& text = BString());</td></tr>
				<tr><td align="right">bool </td><td><a href="#removeAction(BAction*)">removeAction</a>(BAction* action);</td></tr>
				<tr><td align="right">int </td><td><a href="#actionCount() const">actionCount</a>() const;</td></tr>
				<tr><td align="right">BAction* </td><td><a href="#action(int)">action</a>(int index);</td></tr>
				<tr><td align="right">const BAction* </td><td><a href="#action(int) const">action</a>(int index) const;</td></tr>
				<tr><td align="right">BAction* </td><td><a href="#action(const BString&)">action</a>(const BString& text);</td></tr>
				<tr><td align="right">const BAction* </td><td><a href="#action(const BString&) const">action</a>(const BString& text) const;</td></tr>
				<tr><td align="right">BAction* </td><td><a href="#actionOfAsset(const BValue&)">actionOfAsset</a>(const BValue& asset);</td></tr>
				<tr><td align="right">const BAction* </td><td><a href="#actionOfAsset(const BValue&) const">actionOfAsset</a>(const BValue& asset) const;</td></tr>
				<tr><td align="right">BAction* </td><td><a href="#checkedAction() const">checkedAction</a>() const;</td></tr>
				<tr><td align="right">void </td><td><a href="#uncheck()">uncheck</a>();</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p> BActionGroup包含多个动作（BAction）并对它们进行选中状态（checked）互斥。当对多个动作编组后其中的动作操作信号会被组接收并发出，动作被选中时若选中模式为单项时，那么其它动作的选中状态会被清除。默认选中状态是单选模式。 
				</p>
				<h3>Signals:</h3><table>
					<tr><td>Signal_Trigger</td><td>Emited when any action is triggered, the value is action triggered.</td></tr>
					<tr><td>Signal_Checked</td><td>Emited when any action is checked, the value is action checked.</td></tr></table>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BActionGroup(const BString&)">
				<h3>BActionGroup(const BString&amp; name = BString());</h3>
				<p>Constructs an action group with name.</p>
			</div>
			<div id="~BActionGroup()">
				<h3>~BActionGroup();</h3>
				<p>Destroy an action group.</p>
			</div>
			<div id="setSelectMode(SelectMode)">
				<h3>void setSelectMode(SelectMode selectMode);</h3>
				<p>Set the select mode of group, select mode defines how to adjust actions when action's check state change.</p>
			</div>
			<div id="selectMode() const">
				<h3>SelectMode selectMode() const;</h3>
			</div>
			<div id="addAction(BAction*)">
				<h3>bool addAction(BAction* action);</h3>
				<p>Append an action to this group.</p>
			</div>
			<div id="addAction(const BString&)">
				<h3>BAction* addAction(const BString&amp; text);</h3>
			</div>
			<div id="addAction(BIcon*,const BString&)">
				<h3>BAction* addAction(BIcon* icon, const BString&amp; text = BString());</h3>
			</div>
			<div id="removeAction(BAction*)">
				<h3>bool removeAction(BAction* action);</h3>
				<p>Remove an action from this action group.</p>
			</div>
			<div id="actionCount() const">
				<h3>int actionCount() const;</h3>
			</div>
			<div id="action(int)">
				<h3>BAction* action(int index);</h3>
				<p>Get action at index of this group.</p>
			</div>
			<div id="action(int) const">
				<h3>const BAction* action(int index) const;</h3>
			</div>
			<div id="action(const BString&)">
				<h3>BAction* action(const BString&amp; text);</h3>
				<p>Get action by the text.</p>
			</div>
			<div id="action(const BString&) const">
				<h3>const BAction* action(const BString&amp; text) const;</h3>
			</div>
			<div id="actionOfAsset(const BValue&)">
				<h3>BAction* actionOfAsset(const BValue&amp; asset);</h3>
			</div>
			<div id="actionOfAsset(const BValue&) const">
				<h3>const BAction* actionOfAsset(const BValue&amp; asset) const;</h3>
			</div>
			<div id="checkedAction() const">
				<h3>BAction* checkedAction() const;</h3>
			</div>
			<div id="uncheck()">
				<h3>void uncheck();</h3>
			</div>
		</div>
	</body>
</html>